//
//  M1LoginView.m
//  NewMarryU
//
//  Created by apple on 2018/7/12.
//  Copyright © 2018年 Cedar. All rights reserved.
//

#import "M1LoginView.h"

@implementation M1LoginView
-(instancetype)init{
    self = [super init];
    if (self) {
        self.backgroundColor = [UIColor whiteColor];
        _m1_imgView = [[UIImageView alloc]init];
        [self addSubview:_m1_imgView];
        
        [_m1_imgView mas_makeConstraints:^(MASConstraintMaker *make) {
            make.centerY.equalTo(self);
            make.left.offset(25);
        }];
        
        _m1_TF = [[UITextField alloc]init];
        _m1_TF.textColor = [UIColor m1_colorHex:0x333333];
        _m1_TF.font = m1_font(15);
        _m1_TF.keyboardType = UIKeyboardTypeNumberPad;
        [self addSubview:_m1_TF];
        [_m1_TF mas_makeConstraints:^(MASConstraintMaker *make) {
            make.left.offset(50);
            make.centerY.equalTo(self);
            make.height.equalTo(self);
            make.right.offset(-20);
        }];
    }
    return self;
}
/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
